<input type="text"
  ng-model="location"
  autocomplete="off"
  id="location"
  placeholder="Ex: Hanoi, Portland, California"
  typeahead="address for address in addresses"
  ng-change="getLocation(location)"
  typeahead-min-length="3"
  typeahead-on-select="setLocation()"
  typeahead-loading="loadingLocations"
  typeahead-wait-ms="555"
  name="location"/>
  <i ng-show="loadingLocations"
     class="fa fa-spinner fa-spin"></i>
    <span ng-bind="loadingText" ng-show="loadingLocations"></span>
